﻿using System;
using System.Collections.Generic;
using System.Text;
using Leadtools;
using Leadtools.WinForms;

namespace MINERP.MODEL.FoundationModel
{
    /// <summary>
    /// 实体类PhotoInfo
    /// </summary>
    public class PhotoInfo_Info
    {
        #region 私有字段
        private int _orderProductId;
        private int _paperTypeID;
        private int _paperFaceId;
        private int _photoId;
        private string _photoBarCode;
        private string _photoName;
        private double _height;
        private double _width;
        private int _pixWidth;
        private int _pixHeight;
        private string _picPath;
        private string _oldPicPath;
        private string _remark;
        private bool _isModifySize;
        private int _printerId;
        private int _status;
        private int _totalNum;
        private int _makeUpNum;

        /// <summary>
        /// 是否返单照片
        /// </summary>
        public bool IsRebackPhoto { get; set; }

        /// <summary>
        /// 是否是清柜的照片0-表正常 ，1-表示是清柜的
        /// </summary>
        public int IsClearBox { get; set; }
        #endregion

        #region 公开属性

        public RasterImage Image { get; set; }
        public RasterImageListItem ImageItem { get; set; }

        public string PaperFaceName { get; set; }

        public string PaperTypeName { get; set; }

        public string PhtotoSizeInch { get { return Width.ToString("0.00") + "X" + Height.ToString("0.00"); } }
        public string PhotoSizeCm { get { return (Width * 2.54).ToString("0.00") + "X" + (Height*2.54).ToString("0.00"); } }
        public bool ImageEnhancement { get; set; }
        //public string PicPath { get; set; }
        public string PrinterName { get; set; }
        public int OrderProductId
        {
            get { return _orderProductId; }
            set { _orderProductId = value; }
        }
        public int PaperTypeID
        {
            get { return _paperTypeID; }
            set { _paperTypeID = value; }
        }
        public int PaperFaceId
        {
            get { return _paperFaceId; }
            set { _paperFaceId = value; }
        }
        public int PhotoId
        {
            get { return _photoId; }
            set { _photoId = value; }
        }
        public string PhotoBarCode
        {
            get { return _photoBarCode; }
            set { _photoBarCode = value; }
        }
        public string PhotoName
        {
            get { return _photoName; }
            set { _photoName = value; }
        }
        /// <summary>
        /// 高，单位：英寸
        /// </summary>
        public double Height
        {
            get { return _height; }
            set { _height = value; }
        }
        /// <summary>
        /// 宽，单位：英寸
        /// </summary>
        public double Width
        {
            get { return _width; }
            set { _width = value; }
        }

        /// <summary>
        /// 宽，单位：像素（PS中的像素）
        /// </summary>
        public int PixWidth
        {
            get { return _pixWidth; }
            set { _pixWidth = value; }
        }
        /// <summary>
        /// 高,单位：像素（PS中的像素）
        /// </summary>
        public int PixHeight
        {
            get { return _pixHeight; }
            set { _pixHeight = value; }
        }
        public string PicPath
        {
            get { return _picPath; }
            set { _picPath = value; }
        }
        public string OldPicPath
        {
            get { return _oldPicPath; }
            set { _oldPicPath = value; }
        }
        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }
        public bool IsModifySize
        {
            get { return _isModifySize; }
            set { _isModifySize = value; }
        }
        public int PrinterId
        {
            get { return _printerId; }
            set { _printerId = value; }
        }
        public int Status
        {
            get { return _status; }
            set { _status = value; }
        }
        public int TotalNum
        {
            get { return _totalNum; }
            set { _totalNum = value; }
        }
        public int MakeUpNum
        {
            get { return _makeUpNum; }
            set { _makeUpNum = value; }
        }
        public byte[] DXFContent { get; set; }
        public string DXFFilePath { get; set; }
        #endregion
    }
}
